import request from '@/utils/request'

// 查询售后工单列表
export function listAfterSalesWorkOrder(query) {
  return request({
    url: '/as/afterSalesWorkOrder/list',
    method: 'get',
    params: query
  })
}

// 查询售后工单详细
export function getAfterSalesWorkOrder(id) {
  return request({
    url: '/as/afterSalesWorkOrder/' + id,
    method: 'get'
  })
}

// 新增售后工单
export function addAfterSalesWorkOrder(data) {
  return request({
    url: '/as/afterSalesWorkOrder',
    method: 'post',
    data: data
  })
}

// 修改售后工单
export function updateAfterSalesWorkOrder(data) {
  return request({
    url: '/as/afterSalesWorkOrder',
    method: 'put',
    data: data
  })
}

// 删除售后工单
export function delAfterSalesWorkOrder(id) {
  return request({
    url: '/as/afterSalesWorkOrder/' + id,
    method: 'delete'
  })
}
